

import request from '@/utils/request'

export function getList(params) {
  //此处直接使用参数
  return request({
    url: '/getBannerList',
    method: 'GET',
    params
  })
}

export function picAdd(data) {
  return request({
    url: '/saveBanner',
    method: 'POST',
    data: data
  })
}

export function picDel(pram) {
  const data = {
    id: pram.id,
  }
  return request({
    url: '/deleteBannerById',
    method: 'GET',
    params : data
  })
}

export function updateStatusApi(params) {
  return request({
    url: `/updateBannerStatus`,
    method: 'get',
    params
  })
}
